<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>







<title>test.c</title><link rel="shortcut icon" type="image/ico" href="neptunerIcon.jpg"><link rel="stylesheet" type="text/css" href="neptuner.css" media="screen"><link rel="stylesheet" type="text/css" href="uboat.css" media="screen"><link rel="stylesheet" type="text/css" href="menu.css" media="screen">
<script type="text/javascript" src="prototype.js"> </script>

<script type="text/javascript" src="editinplace.js"> </script>

<script type="text/javascript" src="inplacenote.js"> </script>

<script type="text/javascript" src="protofish.js"> </script>

<script type="text/javascript" src="proto.menu.js"> </script>

<script type="text/javascript" src="saver.js"> </script>

<script type="text/javascript">var nSourceLines = 203;var sUBoatHome='';var sNeptunerHome='../';var sFilename='test.c';</script>
<script type="text/javascript" src="uboat.js"></script>
</head><div firebugcommandlineattached="true" firebugversion="1.5.0" style="display: none;" id="_firebugConsole"></div><body><div firebugcommandlineattached="true" firebugversion="1.5.0" style="display: none;" id="_firebugConsole"></div><div firebugcommandlineattached="true" firebugversion="1.5.0" style="display: none;" id="_firebugConsole"></div><div firebugcommandlineattached="true" firebugversion="1.5.0" style="display: none;" id="_firebugConsole"></div><div expr="with(_FirebugCommandLine){source
};" methodname="evaluateError" firebugcommandlineattached="true" firebugversion="1.5.0" style="display: none;" id="_firebugConsole"></div><div firebugversion="1.5.0" style="display: none;" id="_firebugConsole"></div><div firebugversion="1.5.0" style="display: none;" id="_firebugConsole"></div><div firebugversion="1.5.0" style="display: none;" id="_firebugConsole"></div>
<div style="display: none;" id="_firebugConsole" firebugversion="1.5.0"></div>
<div style="display: none;" id="_firebugConsole" firebugversion="1.5.0"></div>
<div style="display: none;" id="_firebugConsole" firebugversion="1.5.0"></div>
<div style="display: none;" id="_firebugConsole" firebugversion="1.5.0"></div>

<div id="paneUBoat">
<div id="barTitle"><img id="menuNeptuner" src="neptunerIcon.jpg"> <strong>test.c</strong></div><br>
<div id="barMenu">
<ul id="menuUBoat" class="menu" role="menubar">
<li id="" class=""><a aria-haspopup="true" class="sub" role="menuitem" tabindex="0">File</a>
<ul role="menu">
<li id="" class="" onclick="saveFile(this)"><span class="last hover"><a role="menuitem" href="#">Save</a></span></li>
<li class="" id=""><a aria-haspopup="true" class="sub" role="menuitem">Export</a>
<ul role="menu">
<li class="" id="" onclick="exportNotes()"><a role="menuitem">Notes</a></li>
<li class="" id="" onclick="exportBookmarks()"><a role="menuitem">Bookmarks</a></li>
<li class="" id="" onclick="exportCode()"><a role="menuitem">Code</a></li></ul></li></ul></li>
<li class="" id=""><span class="sub"><a aria-haspopup="true" class="sub" role="menuitem" href="#">View</a>
<ul role="menu">
<li class="" id=""><a role="menuitem" onclick="toggleInlineNotes()">Notes Inline</a></li>
<li class="" id=""><a role="menuitem">Unhide All</a></li>
<li class="" id=""><span class="last"><a role="menuitem" onclick="toggleLineNumbers()">Line Numbers</a></span></li></ul></span></li>
<li class="" id=""><span class="sub"><a aria-haspopup="true" class="sub" role="menuitem" href="#">Edit</a>
<ul role="menu">
<li class="" id=""><a aria-haspopup="true" class="sub" role="menuitem">Remove</a>
<ul role="menu">
<li class="" id=""><a role="menuitem">Bookmarks</a></li>
<li class="" id=""><span class="last"><a role="menuitem">Notes</a></span></li></ul></li></ul></span></li></ul></div>
<div id="areaBookmarks"><img src="bookmark.png"> Bookmarks
<ul id="listBookmarks">
<li class=""><img class="clicker" src="bookmark.png"><a id="anonymous_element_38" href="#SL62">Line SL62 </a></li>
<li class=""><img class="clicker" src="bookmark.png"><a id="anonymous_element_37" href="#SL58">Line SL58 </a></li></ul></div>
<div id="dispScrapbook"><img src="note.png"> Notes
<ul id="listScraps">
<li class=""><img class="clicker" src="note.png"><span id="anonymous_element_39">Fighter</span><br><br></li></ul></div>
<div id="barStatus">Line SL1</div></div>
<div id="paneSidebar"><span id="sideBarTab"><img title="sideBar" onclick="toggleSidebar()" alt="sideBar" src="slidea.png"></span>
<div id="sideBarContents">
<div id="sideBarContentsInner">
<form id="formGotoLine">Line: <input id="inpLine" size="5" type="text"> <input onclick="gotoLine()" value="Goto" type="button"> </form>
<form id="formScrap"><textarea id="textareaScrap" rows="3" cols="30" name="comments">What's on your mind?</textarea> <br>Add To: <input onclick="addScrap()" value="Scrapbook " type="button"> <input onclick="addInlineNote()" value="Line" type="button"> <br></form></div></div></div>
<div id="paneSource">
<ol>
<li><img class="clicker" src="code.png"><span id="SL1" class="sl active"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL2" class="sl"> /*<span class="comm">&nbsp;--------------------------------------------------------------------------<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL3" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Nifty&nbsp;James'&nbsp;Famous&nbsp;File&nbsp;Find&nbsp;Utility<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL4" class="sl"> <span class="comm"><br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL5" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;1.00&nbsp;of&nbsp;20&nbsp;November&nbsp;1989<br></span></span></li>
<li><img class="clicker hasNote" src="attach.png"><span id="SL6" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;1.10&nbsp;of&nbsp;16&nbsp;December&nbsp;1989<br></span></span><span class="ilnote"><img class="clicker" src="ipnote.png"><span id="anonymous_element_40" class="review">Shouldn't it be reverse-chrono?</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL7" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;1.11&nbsp;of&nbsp;&nbsp;5&nbsp;January&nbsp;&nbsp;1990<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL8" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;1.12&nbsp;of&nbsp;13&nbsp;February&nbsp;1990<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL9" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;1.50&nbsp;of&nbsp;25&nbsp;March&nbsp;&nbsp;&nbsp;&nbsp;1990<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL10" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;2.00&nbsp;of&nbsp;&nbsp;3&nbsp;April&nbsp;&nbsp;&nbsp;&nbsp;1990<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL11" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;2.10&nbsp;of&nbsp;25&nbsp;August&nbsp;&nbsp;&nbsp;1991<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL12" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;2.15&nbsp;of&nbsp;&nbsp;9&nbsp;December&nbsp;1991<br></span></span></li>
<li><img class="clicker hasNote" src="attach.png"><span id="SL13" class="sl active"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;2.16&nbsp;of&nbsp;19&nbsp;October&nbsp;&nbsp;1992<br></span></span><span class="ilnote"><img class="clicker" src="ipnote.png"><span id="anonymous_element_41" class="review">Long time no C</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL14" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Version&nbsp;2.17&nbsp;of&nbsp;22&nbsp;March&nbsp;&nbsp;&nbsp;&nbsp;1993<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL15" class="sl"> <span class="comm"><br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL16" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;(C)&nbsp;Copyright&nbsp;1989,&nbsp;1990,&nbsp;1991,&nbsp;1992&nbsp;by&nbsp;Mike&nbsp;Blaszczak<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL17" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;All&nbsp;Rights&nbsp;Reserved.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL18" class="sl"> <span class="comm"><br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL19" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Written&nbsp;for&nbsp;the&nbsp;Microsoft&nbsp;C&nbsp;Compiler&nbsp;Version&nbsp;6.00AX.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL20" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;LINK&nbsp;with&nbsp;an&nbsp;increased&nbsp;stack&nbsp;size!<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL21" class="sl"> <span class="comm"><br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL22" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Updated&nbsp;for&nbsp;Microsoft&nbsp;C/C++&nbsp;Version&nbsp;8.00&nbsp;at&nbsp;Version&nbsp;2.17<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL23" class="sl"> <span class="comm">*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL24" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL25" class="sl"> /*<span class="comm">&nbsp;--------------------------------------------------------------------------<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL26" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Needed&nbsp;#include&nbsp;Files<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL27" class="sl"> <span class="comm">*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL28" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL29" class="sl"> #<span class="prep">pragma&nbsp;pack(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;don't&nbsp;space&nbsp;structure&nbsp;members&nbsp;*/<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL30" class="sl"> <span class="prep"></span>#<span class="prep">include&nbsp;&lt;ctype.h&gt;<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL31" class="sl"> <span class="prep"></span>#<span class="prep">include&nbsp;&lt;dos.h&gt;<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL32" class="sl"> <span class="prep"></span>#<span class="prep">include&nbsp;&lt;signal.h&gt;<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL33" class="sl"> <span class="prep"></span>#<span class="prep">include&nbsp;&lt;stdio.h&gt;<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL34" class="sl"> <span class="prep"></span>#<span class="prep">include&nbsp;&lt;stdlib.h&gt;<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL35" class="sl"> <span class="prep"></span>#<span class="prep">include&nbsp;&lt;string.h&gt;<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL36" class="sl"> <span class="prep"></span>#<span class="prep">include&nbsp;&lt;time.h&gt;<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL37" class="sl"> <span class="prep"></span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL38" class="sl"> #<span class="prep">include&nbsp;"test.h"<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL39" class="sl"> <span class="prep"></span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL40" class="sl"> /*<span class="comm">&nbsp;--------------------------------------------------------------------------<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL41" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Global&nbsp;Variables<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL42" class="sl"> <span class="comm">*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL43" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL44" class="sl"> <span class="kwrd">unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;stored&nbsp;result&nbsp;of&nbsp;_dos_find*()&nbsp;calls&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL45" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL45">temp</a>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;temporary&nbsp;pointer&nbsp;for&nbsp;strings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL46" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL46">extension</a>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;pointer&nbsp;to&nbsp;file&nbsp;extension&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL47" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">template</span>[_MAX_PATH];&nbsp;/*<span class="comm">&nbsp;template&nbsp;to&nbsp;match&nbsp;files&nbsp;searched&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL48" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL48">inputfile</a>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;pointer&nbsp;to&nbsp;wildcard&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL49" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL50" class="sl"> <span class="kwrd">struct</span>&nbsp;<a href="../codebase/test.h.uboat.html#SL15">fullfilename</a><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL51" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL51">tempfullname</a>,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;full&nbsp;name&nbsp;of&nbsp;file&nbsp;we're&nbsp;working&nbsp;on&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL52" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL52">matchname</a>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;name&nbsp;to&nbsp;match&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL53" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL54" class="sl"> <span class="kwrd">unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;found&nbsp;=0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;count&nbsp;of&nbsp;found&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL55" class="sl"> <span class="kwrd">unsigned</span>&nbsp;<span class="kwrd">long</span>&nbsp;&nbsp;<a href="#SL55">totallength</a>&nbsp;=&nbsp;0L;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;total&nbsp;of&nbsp;file&nbsp;lengths&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL56" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL57" class="sl"> <span class="kwrd">unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archivefound&nbsp;=&nbsp;0;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;count&nbsp;of&nbsp;found&nbsp;files&nbsp;in&nbsp;archves&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL58" class="sl"> <span class="kwrd">unsigned</span>&nbsp;<span class="kwrd">long</span>&nbsp;&nbsp;<a href="#SL58">archivetotallength</a>&nbsp;=&nbsp;0L;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL59" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;total&nbsp;file&nbsp;lengths&nbsp;of&nbsp;archive&nbsp;files.*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL60" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL61" class="sl"> <span class="kwrd">struct</span>&nbsp;<a href="../codebase/test.h.uboat.html#SL28">zip_lfh</a>&nbsp;<a href="#SL61">zipworker</a>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;workspace&nbsp;for&nbsp;zip&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL62" class="sl"> <span class="kwrd">struct</span>&nbsp;<a href="../codebase/test.h.uboat.html#SL52">arc_lfh</a>&nbsp;<a href="#SL62">arcworker</a>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;workspace&nbsp;for&nbsp;arc&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL63" class="sl"> <span class="kwrd">struct</span>&nbsp;<a href="../codebase/test.h.uboat.html#SL65">lzh_lfh</a>&nbsp;<a href="#SL63">lzhworker</a>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;workspace&nbsp;for&nbsp;lzh&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL64" class="sl"> <span class="kwrd">struct</span>&nbsp;<a href="../codebase/test.h.uboat.html#SL77">zoo_lfh</a>&nbsp;<a href="#SL64">zooworker</a>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;workspace&nbsp;for&nbsp;zoo&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL65" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL66" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL66">searchzips</a>&nbsp;=&nbsp;TRUE;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;flags&nbsp;for&nbsp;options&nbsp;on&nbsp;searching&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL67" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL67">searchlzhs</a>&nbsp;=&nbsp;TRUE;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;different&nbsp;archive&nbsp;types&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL68" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL68">searchzoos</a>&nbsp;=&nbsp;TRUE;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL69" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL69">searcharcs</a>&nbsp;=&nbsp;TRUE;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL70" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL70">searchpaks</a>&nbsp;=&nbsp;TRUE;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL71" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL71">searchdwcs</a>&nbsp;=&nbsp;TRUE;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL72" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL72">searcharjs</a>&nbsp;=&nbsp;TRUE;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL73" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL74" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL74">verbose</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;TRUE&nbsp;for&nbsp;verbose&nbsp;mode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL75" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL75">progress</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;TRUE&nbsp;to&nbsp;show&nbsp;progress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL76" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL76">totalsmode</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;/*<span class="comm">&nbsp;TURE&nbsp;for&nbsp;display&nbsp;totals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL77" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL77">changedrive</a>&nbsp;=&nbsp;FALSE;&nbsp;/*<span class="comm">&nbsp;set&nbsp;TRUE&nbsp;if&nbsp;user&nbsp;changed&nbsp;disks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL78" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL79" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL79">broken</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;set&nbsp;true&nbsp;if&nbsp;user&nbsp;does&nbsp;CTRL+BREAK&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL80" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL81" class="sl"> <a href="../codebase/test.h.uboat.html#SL4">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL81">alldrives</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;search&nbsp;through&nbsp;all&nbsp;drives&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL82" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL83" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL83">fiftyspaces</a>[55];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;a&nbsp;bunch&nbsp;of&nbsp;spaces&nbsp;for&nbsp;printmatch()&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL84" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL85" class="sl"> <span class="kwrd">unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drivecount;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;used&nbsp;to&nbsp;change&nbsp;disk&nbsp;drives&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL86" class="sl"> <span class="kwrd">unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newdrive;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL87" class="sl"> <span class="kwrd">unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;olddrive;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL88" class="sl"> <span class="kwrd">unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastdrive;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL89" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL89">newdriveletter</a>[3];<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL90" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL91" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL91">drivelist</a>[28];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;list&nbsp;of&nbsp;drives&nbsp;to&nbsp;search&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL92" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL92">currentdrive</a>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL93" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL94" class="sl"> <span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL94">szFileNameBuffer</a>[4096];<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL95" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL96" class="sl"> /*<span class="comm">&nbsp;--------------------------------------------------------------------------<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL97" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;Global&nbsp;Constants<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL98" class="sl"> <span class="comm">*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL99" class="sl"> <span class="kwrd">const</span>&nbsp;<span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL99">fmessageread</a>&nbsp;&nbsp;=&nbsp;"<span class="litr">Couldn't&nbsp;open&nbsp;file&nbsp;\"%s\"&nbsp;for&nbsp;read.\n"</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL100" class="sl"> <span class="kwrd">const</span>&nbsp;<span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL100">readbinary</a>&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"<span class="litr">rb"</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL101" class="sl"> <span class="kwrd">const</span>&nbsp;<span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL101">notsearching</a>&nbsp;&nbsp;=&nbsp;"<span class="litr">Not&nbsp;searching&nbsp;%s&nbsp;files\n"</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL102" class="sl"> <span class="kwrd">const</span>&nbsp;<span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL102">eraseline</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"<span class="litr">\t\t\t\t\t\t\t\t\t\r"</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL103" class="sl"> <span class="kwrd">const</span>&nbsp;<span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL103">wfi</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"<span class="litr">&nbsp;was&nbsp;found&nbsp;in&nbsp;"</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL104" class="sl"> <span class="kwrd">const</span>&nbsp;<span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL104">swfis</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"<span class="litr">%s&nbsp;was&nbsp;found&nbsp;in&nbsp;%s%s"</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL105" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL106" class="sl"> <span class="kwrd">const</span>&nbsp;<span class="kwrd">char</span>&nbsp;*<a href="#SL106">month3names</a>[12]&nbsp;=<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL107" class="sl"> {<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL108" class="sl"> &nbsp;&nbsp;&nbsp;"<span class="litr">Jan"</span>,&nbsp;"<span class="litr">Feb"</span>,&nbsp;"<span class="litr">Mar"</span>,&nbsp;"<span class="litr">Apr"</span>,&nbsp;"<span class="litr">May"</span>,&nbsp;"<span class="litr">Jun"</span>,<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL109" class="sl"> &nbsp;&nbsp;&nbsp;"<span class="litr">Jul"</span>,&nbsp;"<span class="litr">Aug"</span>,&nbsp;"<span class="litr">Sep"</span>,&nbsp;"<span class="litr">Oct"</span>,&nbsp;"<span class="litr">Nov"</span>,&nbsp;"<span class="litr">Dec"</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL110" class="sl"> };<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL111" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL112" class="sl"> /*<span class="comm">&nbsp;--------------------------------------------------------------------------<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL113" class="sl"> <span class="comm">*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL114" class="sl"> <span class="kwrd">void</span>&nbsp;&nbsp;<a href="#SL114">processzip</a>(<span class="kwrd">char</span>&nbsp;*<a href="#SL114">filename</a>,&nbsp;<span class="kwrd">struct</span>&nbsp;<a href="#SL114">find_t</a>&nbsp;*<a href="#SL114">info</a>)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL115" class="sl"> {<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL116" class="sl"> &nbsp;&nbsp;&nbsp;FILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*zipfile;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL117" class="sl"> &nbsp;&nbsp;&nbsp;<span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL117">insidefilename</a>&nbsp;=&nbsp;NULL;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL118" class="sl"> &nbsp;&nbsp;&nbsp;<span class="kwrd">struct</span>&nbsp;<a href="../codebase/test.h.uboat.html#SL15">fullfilename</a>&nbsp;&nbsp;<a href="#SL118">zipfullname</a>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL119" class="sl"> &nbsp;&nbsp;&nbsp;<span class="kwrd">char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL119">temporary</a>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL120" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL121" class="sl"> #<span class="prep">if&nbsp;defined(DEBUG)<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL122" class="sl"> <span class="prep"></span>&nbsp;&nbsp;&nbsp;printf("<span class="litr">processzip(\"%s\")\n"</span>,&nbsp;<a href="#SL114">info</a>-&gt;name);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL123" class="sl"> #<span class="prep">endif<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL124" class="sl"> <span class="prep"></span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL125" class="sl"> &nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;if&nbsp;the&nbsp;file&nbsp;name&nbsp;doesn't&nbsp;match&nbsp;the&nbsp;requested&nbsp;template&nbsp;name,<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL126" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;now&nbsp;and&nbsp;don't&nbsp;even&nbsp;bother&nbsp;opening&nbsp;the&nbsp;zip&nbsp;file.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL127" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL128" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL129" class="sl"> &nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL864">comparenames</a>(&amp;<a href="#SL51">tempfullname</a>,&nbsp;&amp;<a href="#SL52">matchname</a>)&nbsp;==&nbsp;0)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL130" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL131" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;found++;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL132" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL76">totalsmode</a>&nbsp;==&nbsp;FALSE)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL133" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL74">verbose</a>&nbsp;==&nbsp;TRUE)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL134" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL805">printmatch</a>(<a href="#SL114">filename</a>,&nbsp;<a href="#SL114">info</a>-&gt;size,&nbsp;<a href="#SL114">info</a>-&gt;wr_date,&nbsp;<a href="#SL114">info</a>-&gt;wr_time);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL135" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">else</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL136" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf("<span class="litr">%s%s\n"</span>,&nbsp;<a href="#SL89">newdriveletter</a>,&nbsp;<a href="#SL114">filename</a>);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL137" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL138" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL55">totallength</a>&nbsp;+=&nbsp;<a href="#SL114">info</a>-&gt;size;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL139" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL140" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL141" class="sl"> &nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL66">searchzips</a>&nbsp;==&nbsp;FALSE)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL142" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">return</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL143" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL144" class="sl"> &nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;open&nbsp;the&nbsp;zip&nbsp;file&nbsp;by&nbsp;name&nbsp;and&nbsp;see&nbsp;if&nbsp;it&nbsp;was&nbsp;successful.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL145" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL146" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL147" class="sl"> &nbsp;&nbsp;&nbsp;zipfile&nbsp;=&nbsp;fopen(<a href="#SL114">filename</a>,&nbsp;<a href="#SL100">readbinary</a>);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL148" class="sl"> &nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(zipfile&nbsp;==&nbsp;NULL)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL149" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL150" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL99">fmessageread</a>,&nbsp;<a href="#SL114">filename</a>);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL151" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">return</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL152" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL153" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL154" class="sl"> &nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;loop&nbsp;through&nbsp;the&nbsp;whole&nbsp;file<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL155" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL156" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL157" class="sl"> &nbsp;&nbsp;&nbsp;<span class="kwrd">while</span>(!feof(zipfile))<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL158" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL159" class="sl"> &nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;read&nbsp;the&nbsp;local&nbsp;file&nbsp;header.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL160" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;we&nbsp;don't&nbsp;get&nbsp;it,&nbsp;break&nbsp;the&nbsp;loop.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL161" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;At&nbsp;this&nbsp;same&nbsp;time,&nbsp;check&nbsp;it&nbsp;for&nbsp;a&nbsp;valid&nbsp;signature.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL162" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL163" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL164" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(fread(&amp;<a href="#SL61">zipworker</a>,&nbsp;<span class="kwrd">sizeof</span>(<span class="kwrd">struct</span>&nbsp;<a href="../codebase/test.h.uboat.html#SL28">zip_lfh</a>),&nbsp;(size_t)&nbsp;1,&nbsp;zipfile)&nbsp;!=&nbsp;1)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL165" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">break</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL166" class="sl"> <br></span></li>
<li><img class="clicker hasNote" src="attach.png"><span id="SL167" class="sl active"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL61">zipworker</a>.signature&nbsp;!=&nbsp;0x04034B50)<br></span><span class="ilnote"><img class="clicker" src="ipnote.png"><span id="anonymous_element_36" class="review">magic number! #define it somewhere dude.</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL168" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">break</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL169" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL170" class="sl"> &nbsp;&nbsp;&nbsp;/*<span class="comm">&nbsp;free&nbsp;the&nbsp;temporary&nbsp;file&nbsp;name&nbsp;area<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL171" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;allocate&nbsp;a&nbsp;space&nbsp;for&nbsp;the&nbsp;new&nbsp;name.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL172" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read&nbsp;it&nbsp;from&nbsp;the&nbsp;zip&nbsp;file.<br></span></span></li>
<li><img class="clicker" src="code.png"><span id="SL173" class="sl"> <span class="comm">&nbsp;&nbsp;&nbsp;*/</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL174" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL117">insidefilename</a>&nbsp;=&nbsp;<a href="#SL94">szFileNameBuffer</a>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL175" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL176" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(fread((<span class="kwrd">void</span>&nbsp;*)&nbsp;<a href="#SL117">insidefilename</a>,&nbsp;&nbsp;<a href="#SL61">zipworker</a>.fnlength,&nbsp;(size_t)&nbsp;1,&nbsp;zipfile)&nbsp;!=&nbsp;1)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL177" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">break</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL178" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL117">insidefilename</a>[<a href="#SL61">zipworker</a>.fnlength]&nbsp;=&nbsp;'<span class="litr">\0'</span>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL179" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL180" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL119">temporary</a>&nbsp;=&nbsp;strrchr(<a href="#SL117">insidefilename</a>,&nbsp;'<span class="litr">/'</span>);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL181" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL119">temporary</a>&nbsp;!=&nbsp;NULL)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL182" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL119">temporary</a>++;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL183" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">else</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL184" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL119">temporary</a>&nbsp;=&nbsp;<a href="#SL117">insidefilename</a>;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL185" class="sl"> <br></span></li>
<li><img class="clicker" src="code.png"><span id="SL186" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL966">makefullname</a>(&amp;<a href="#SL118">zipfullname</a>,&nbsp;<a href="#SL119">temporary</a>);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL187" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL864">comparenames</a>(&amp;<a href="#SL118">zipfullname</a>,&nbsp;&amp;<a href="#SL52">matchname</a>)&nbsp;==&nbsp;0)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL188" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span></li>
<li><img class="clicker hasNote" src="attach.png"><span id="SL189" class="sl active"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archivefound++;<br></span><span class="ilnote"><img class="clicker" src="ipnote.png"><span id="anonymous_element_35" class="review">why do you wanna increment here? do it after</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL190" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL58">archivetotallength</a>&nbsp;+=&nbsp;<a href="#SL61">zipworker</a>.usize;<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL191" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL76">totalsmode</a>&nbsp;==&nbsp;FALSE)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL192" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL74">verbose</a>&nbsp;==&nbsp;TRUE)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL193" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL698">printinside</a>(<a href="#SL114">filename</a>,&nbsp;<a href="#SL119">temporary</a>,&nbsp;<a href="#SL61">zipworker</a>.usize,<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL194" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL61">zipworker</a>.moddate,&nbsp;<a href="#SL61">zipworker</a>.modtime);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL195" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">else</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL196" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL197" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL104">swfis</a>,&nbsp;<a href="#SL119">temporary</a>,&nbsp;<a href="#SL89">newdriveletter</a>,&nbsp;<a href="#SL114">filename</a>);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL198" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class="litr">\n'</span>);<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL199" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL200" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL201" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">else</span><br></span></li>
<li><img class="clicker" src="code.png"><span id="SL202" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kwrd">if</span>&nbsp;(<a href="#SL75">progress</a>&nbsp;==&nbsp;TRUE)<br></span></li>
<li><img class="clicker" src="code.png"><span id="SL203" class="sl"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf("<span class="litr">%s%s\t\t\r"</span>,&nbsp;<a href="#SL89">newdriveletter</a>,&nbsp;<a href="#SL119">temporary</a>);<br></span></li></ol></div>
<div style="display: none;" class="menu desktop">
<ul>
<li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li>
<li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li>
<li class="separator"></li>
<li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div>
<div style="display: none;" class="menu desktop">
<ul>
<li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li>
<li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li>
<li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div>
<div style="display: none;" class="menu desktop">
<ul>
<li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li>
<li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li>
<li class="separator"></li>
<li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div>
<div style="z-index: 100; display: none; top: 1270px; left: 410px;" class="menu desktop">
<ul>
<li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li>
<li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li>
<li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div>
<div style="display: none;" class="menu desktop">
<ul>
<li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li>
<li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li>
<li class="separator"></li>
<li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div>
<div style="display: none;" class="menu desktop">
<ul>
<li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li>
<li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li>
<li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div>
<div style="display: none;" class="menu desktop" undefined="display:none">
<ul>
<li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li>
<li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li>
<li class="separator"></li>
<li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><iframe style="position: absolute; display: none;" src="javascript:false;" undefined="position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);display:none" frameborder="0"></iframe>
<div style="z-index: 100; display: none; top: 2702px; left: 338px;" class="menu desktop" undefined="display:none">
<ul>
<li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li>
<li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li>
<li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><iframe style="z-index: 99; position: absolute; width: 224px; display: none; height: 64px; top: 2702px; left: 338px;" src="javascript:false;" undefined="position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);display:none" frameborder="0"></iframe>
<div style="display: none;" class="menu desktop">
<ul>
<li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li>
<li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li>
<li class="separator"></li>
<li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div>
<div style="display: none;" class="menu desktop">
<ul>
<li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li>
<li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li>
<li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div>
<div style="display: none;" class="menu desktop" undefined="display:none">
<ul>
<li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li>
<li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li>
<li class="separator"></li>
<li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><iframe style="position: absolute; display: none;" src="javascript:false;" undefined="position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);display:none" frameborder="0"></iframe>
<div style="display: none;" class="menu desktop" undefined="display:none">
<ul>
<li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li>
<li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li>
<li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><iframe style="position: absolute; display: none;" src="javascript:false;" undefined="position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);display:none" frameborder="0"></iframe><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li><li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li><li class="separator"></li><li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li><li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li><li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li><li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li><li class="separator"></li><li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li><li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li><li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li><li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li><li class="separator"></li><li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li><li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li><li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li><li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li><li class="separator"></li><li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li><li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li><li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><script id="_firebugCommandLineInjector" type="text/javascript">/* See license.txt for terms of usage */

var _FirebugCommandLine =
{
    initFirebugCommandLine: function()
    {
        // Define console functions.
        var commands = ["$", "$$", "$x", "$n", "cd", "clear", "inspect", "keys",
            "values", "debug", "undebug", "monitor", "unmonitor", "traceCalls", "untraceCalls",
            "traceAll", "untraceAll", "monitorEvents", "unmonitorEvents", "profile", "profileEnd", "copy"];
        for (var i=0; i<commands.length; i++)
        {
            var command = commands[i];

            // If the method is already defined, don't override it.
            if (window[command])
                continue;

            this[command] = new Function(
                "return window.console.notifyFirebug(arguments, '" + command + "', 'firebugExecuteCommand');");
        }

        // Define console shortcuts
        var consoleShortcuts = ["dir", "dirxml"];
        for (var i=0; i<consoleShortcuts.length; i++)
        {
            var command = consoleShortcuts[i];
            this[command] = new Function("return window.console." + command + ".apply(window.console, arguments)");
        }

        // Define console variables.
        var props = ["$0", "$1"];
        for (var j=0; j<props.length; j++)
        {
            var prop = props[j];
            if (window[prop])
                continue;

            this.__defineGetter__(prop, new Function(
                "return window.console.notifyFirebug(arguments, '" + prop + "', 'firebugExecuteCommand');"));
        }

        this.attachCommandLine();
    },

    attachCommandLine: function()
    {
        // DBG window.dump("attachCommandLine "+window.location+"\n");
        if (!window.console)
        {
            // DBG 	debugger;
            window.loadFirebugConsole();
        }
        var element = window.console.getFirebugElement();
        var self = this;
        element.addEventListener("firebugCommandLine", function _firebugEvalEvent(event)
        {
            // DBG window.dump("attachCommandLine firebugCommandLine "+window.location+"\n");
            var element = event.target;
            var expr = element.getAttribute("expr"); // see commandLine.js
            self.evaluate(expr);
            // DBG window.dump("attachCommandLine did evaluate on "+expr+"\n");
        }, true);
        element.setAttribute("firebugCommandLineAttached", "true")
        // DBG window.dump("Added listener for firebugCommandLine event "+window.location+"\n");
    },

    evaluate: function(expr)
    {
        try
        {
            var result = window.eval(expr);
            if (typeof result != "undefined")
                window.console.notifyFirebug([result], "evaluated", "firebugAppendConsole");
        }
        catch(exc)
        {
            var result = exc;
            result.source = expr;
            window.console.notifyFirebug([result], "evaluateError", "firebugAppendConsole");
        }
    },
};

(function()
{
    try
    {
        // DBG window.dump("_FirebugCommandLine init console is "+window.console+" in "+window.location+"\n");
        _FirebugCommandLine.initFirebugCommandLine();
    }
    catch(exc)
    {
        var wrappedException = {
            cause: exc,
            message: "_FirebugCommandLine init failed in "+window.location+" because "+exc,
            toString: function() { return this.message; }
        };
        throw wrappedException;
    }
})();
</script><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li><li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li><li class="separator"></li><li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li><li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li><li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li><li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li><li class="separator"></li><li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li><li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li><li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li><li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li><li class="separator"></li><li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li><li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li><li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Goto Codebase Home" href="#">Goto Codebase Home</a></li><li class=""><a class="delete enabled" title="Goto Submarine View" href="#">Goto Submarine View</a></li><li class="separator"></li><li class=""><a class="save enabled" title="About" href="#">About</a></li></ul></div><div style="display: none;" class="menu desktop"><ul><li class=""><a class="edit enabled" title="Add Bookmark" href="#">Add Bookmark</a></li><li class=""><a class="delete enabled" title="Show Notes" href="#">Show Notes</a></li><li class=""><a class="delete enabled" title="Hide Notes" href="#">Hide Notes</a></li></ul></div></body>